@extends('web.common.main_st')
@section('css')
<style>
img{
	display: inline-block;
}
</style>
<link rel="stylesheet" type="text/css" href="/css/v124/p_case.css" />
<link rel="stylesheet" type="text/css" href="/css/v124/p_detail.css" />
<!-- <link rel="stylesheet" type="text/css" href="/css/v124/partner.css" /> -->
<link rel="stylesheet" type="text/css" href="/css/v124/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/css/v124/p_law.css"/>
<link rel="stylesheet" type="text/css" href="/css/v124/paging.css"/>
@section('container')
<div class="hb-banner hb-banner_active">
		<ul>
				<li style='background-image: url("/img/ecology/banner1.jpg")'></li>
		</ul>
		<div class="hb-banner-bar">
				<div class="hb-contain">
						<!-- <ul class="col2">
								<li>
										<a class="current" href="/industry_coo"><span class="hb-icon hb-icon-partner">合作机构</span></a>
								</li>
								<li>
										<a href="/industry_coo/mode"><span class="hb-icon hb-icon-mode">合作要求</span></a>
								</li>
						</ul> -->
				</div>
		</div>
</div>
<div class="hb-contain">
	<?
	// print_r($data);
	?>
		<div class="main_p_detail">
			<ul class="detail_tit">
				<li style="list-style: none;">首页</li>
				<li>生态圈</li>
				<li style="color:#00478B;">合作机构详情</li>
			</ul>
			<div class="company_name">
				{{$data['ctmEnterprise']['enterprise_name']}}
			</div>
			<div class="company_detail clearfix">
				<div class="detail_con_D">
					<!-- <ul class="default_ullt company_base">
						<li><span class="label_key">企业类型：</span><span class="label_val"></span></li>
						<li><span class="label_key">核心技术：</span><span class="label_val"></span></li>
						<li><span class="label_key">经营范围：</span><span class="label_val"></span></li>
						<li><span class="label_key">涉及领域：</span><span class="label_val"></span></li>
						<li><span class="label_key">上市情况：</span><span class="label_val"></span></li>
					</ul> -->
					<div class="con">
{!! $data['ctmEnterprise']['company_introduce']!!}
					</div>
				</div>
				<div class="detail_pic">
					<div id="main" style="width: 461px;height:400px;"></div>
				</div>
			</div>
			<div style="height:20px;background-color:#eee;"></div>
			<? if(request()->cookie('phone')!=0) { ?>
			<ul class="gf_tit1_D">
				<li>进阶能力</li>
			</ul>
			<div class="p_tab">
				<ul class="tab_ul">
					<li class="activeArea">设计</li>
					<li>咨询</li>
					<li>承建</li>
					<li>设备供应</li>
					<!-- <li>投资</li> -->
					<li style="margin-right:0;">运维</li>
				</ul>
				<div class="tab_detail_D" style="display:block;">
					<ul class="P_allkind_D">
						<li><span class="label_key">专业领域</span>&nbsp;&nbsp;<span class="label_val">{{$data['design']['major_field']}}</span></li>
						<li><span class="label_key">资质等级</span>&nbsp;&nbsp;<span class="label_val">{{$data['design_zizhi_level']}}</span></li>
						<li><span class="label_key">资质类别</span>&nbsp;&nbsp;<span class="label_val">	{{$data['design_zizhi_type']}}</span></li>
						<li><span class="label_key">资质颁发单位</span>&nbsp;&nbsp;<span class="label_val">	{{$data['design_zizhi_award_unit']}}</span></li>
						<!-- <li><span class="label_key">收费标准</span>&nbsp;&nbsp;<span class="label_val">{{$data['design']['charge_standard']}}</span></li> -->
						<li><span class="label_key">获奖历史</span>&nbsp;&nbsp;<span class="label_val">暂无</span></li>
					</ul>

				</div>
				<div class="tab_detail_D">

					<ul class="P_allkind_D">
						<li><span class="label_key">专业领域</span>&nbsp;&nbsp;<span class="label_val">{{$data['consult']['zizhi_type']}}</span></li>
						<li><span class="label_key">资质等级</span>&nbsp;&nbsp;<span class="label_val">{{$data['consult']['zizhi_type']}}</span></li>
						<!-- <li><span class="label_key">收费标准</span>&nbsp;&nbsp;<span class="label_val">{{$data['consult']['zizhi_type']}}</span></li> -->
						<li><span class="label_key">资质类别</span>&nbsp;&nbsp;<span class="label_val">{{$data['consult']['zizhi_type']}}</span></li>
						<li><span class="label_key">资质颁发单位</span>&nbsp;&nbsp;<span class="label_val">{{$data['consult']['zizhi_type']}}</span></li>
						<li><span class="label_key">获奖历史</span>&nbsp;&nbsp;<span class="label_val">暂无</span></li>
					</ul>

				</div>
				<div class="tab_detail_D">
					<ul class="P_allkind_D">
						<!-- <li><span>资质类别</span>&nbsp;&nbsp;<span></span></li> -->
						<li><span class="label_key">专业领域</span>&nbsp;&nbsp;<span class="label_val">{{$data['construct']['major_field']}}</span></li>
						<li><span class="label_key">资质等级</span>&nbsp;&nbsp;<span class="label_val">{{$data['construct_zizhi_level']}}</span></li>
						<li><span class="label_key">资质颁发单位</span>&nbsp;&nbsp;<span class="label_val">{{$data['construct_zizhi_award_unit']}}</span></li>
						<!-- <li><span class="label_key">收费标准</span>&nbsp;&nbsp;<span class="label_val">{{$data['construct']['charge_standard']}}</span></li> -->
						<li><span class="label_key">获奖历史</span>&nbsp;&nbsp;<span class="label_val">暂无</span></li>
					</ul>
				</div>
				<div class="tab_detail_D">

					<ul class="P_allkind_D">
						<li><span class="label_key">主营设备</span>&nbsp;&nbsp;<span class="label_val"><?
						if(count($data['device_main_equipment'])>0){
							$devices=implode(',',$data['device_main_equipment']);
							echo $devices;
						}
						?></span></li>
						<li><span class="label_key">资质等级</span>&nbsp;&nbsp;<span class="label_val">{{$data['device_enterprise_popularity']}}</span></li>
						<li><span class="label_key">销售方式</span>&nbsp;&nbsp;<span class="label_val"><? if(count($data['device_sale_way'])>0){
							$devices=implode(',',$data['device_sale_way']);
							echo $devices;
						} ?></span></li>
						<li><span class="label_key">获奖历史</span>&nbsp;&nbsp;<span class="label_val">暂无</span></li>
					</ul>
				</div>
				<!-- <div class="tab_detail_D">

					<ul class="P_allkind_D">
						<li><span>资质类别</span>&nbsp;&nbsp;<span>*</span></li>
						<li><span>资质颁发单位</span>&nbsp;&nbsp;<span>*</span></li>
						<li><span>资质等级</span>&nbsp;&nbsp;<span>*</span></li>
						<li><span>专业领域</span>&nbsp;&nbsp;<span>*</span></li>
						<li><span>收费标准</span>&nbsp;&nbsp;<span>*</span></li>
					</ul>
				</div> -->
				<div class="tab_detail_D">

					<ul class="P_allkind_D">
						<li><span class="label_key">主要业务</span>&nbsp;&nbsp;<span class="label_val">{{$data['operation']['main_business']}}</span></li>
						<li><span class="label_key">业务优势</span>&nbsp;&nbsp;<span class="label_val">{{$data['operation']['enterprise_advantage']}}</span></li>
						<li><span class="label_key">担保能力</span>&nbsp;&nbsp;<span class="label_val">{{$data['operation']['operation_bc_ability']}}</span></li>
						<li><span class="label_key">业务区域</span>&nbsp;&nbsp;<span class="label_val"><? if(count($data['operation_business_region'])>0){
							$devices=implode(',',$data['operation_business_region']);
							echo $devices;
						} ?></span></li>
						<li><span class="label_key">获奖历史</span>&nbsp;&nbsp;<span class="label_val">暂无</span></li>
					</ul>
				</div>
			</div>
				<div class="line" style="margin-top:50px;margin-bottom:30px;"></div>

			<? if(count($data['projectCase'])>0) {?>
				<ul class="gf_tit1_D">
					<li>案例</li>
				</ul>
			<div class="xm">
				<span>
					<a href="/industry_coo/cases?id={{$data['projectCase'][0]['id']}}">
						<img src="/img/firstPage/xm1.png"/>
					<p>项目</p>
					<p><a href="/industry_coo/cases?id={{$data['projectCase'][0]['id']}}">{{$data['projectCase'][0]['project_name']}}</a></p>
					</a>

				</span>
				<span>
					<img src="/img/firstPage/xm2.png"/>
					<p>地区</p>
					<p>{{$data['projectCase'][0]['case_place']}}</p>
				</span>
				<span>
					<img src="/img/firstPage/xm3.png"/>
					<p>投资金额</p>
					<p>{{$data['projectCase'][0]['amount_invesed']}}</p>
				</span>
				<span style="margin-right:0;">
					<img src="/img/firstPage/xm4.png"/>
					<p>涉及领域</p>
					<p>{{$data['projectCase'][0]['involed']}}</p>
				</span>

			</div>
		<? } ?>
			<!-- <div class="line" style="margin-top:50px;margin-bottom:30px;"></div>
			<ul class="gf_tit1_D" style="margin-bottom:50px;">
				<li>碳银评价</li>
			</ul>
			<p style="margin-bottom:30px;">暂无内容</p> -->
		<? }else{?>
			<ul class="gf_tit1_D">
				<li>进阶能力查看，请登录</li>
				<li class="dl">
					<a href="/login" target="_blank">登录</a>
				</li>
			</ul>
		<? } ?>
		</div>
	</div>
@endsection
@section('script')
<script src="/js/v124/jquery-3.2.1.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/v124/echarts.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$('.tab_ul li').click(function() {
			$(this).addClass('activeArea').siblings().removeClass('activeArea')
			var index = $(this).index()
			$('.tab_detail_D').eq(index).css({ 'display': 'block' }).siblings('.tab_detail_D').css({ 'display': 'none' })

		})
	})
</script>
<script type="text/javascript">
	var myChart = echarts.init(document.getElementById("main"));
	option = {
		title: {
			text: '能力画像'
		},
		tooltip: {},
		//		  legend: {
		//		      data: ['预算分配（Allocated Budget）']
		//		  },
		radar: {
			// shape: 'circle',
			name: {
				textStyle: {
					color: '#00478b',
					backgroundColor: '#fff',
					borderRadius: 3,
					padding: [3, 5]
				}
			},
			indicator: [
				{ name: '设计咨询', max: 5 },
				{ name: '后续运维', max: 5 },
				{ name: '项目承建', max: 5 },
				{ name: '设备采购', max: 5 },
				{ name: '金融投资', max: 5 },
			]
		},
		series: [{
			data: [

				{
					value: [5, 1, 2, 3, 4],

					name: '能力画像',
					lineStyle: {
						normal: {
							type: 'solid',
							color: '#00478B'
						}
					}
				},

			],
			name: '',
			type: 'radar',
			areaStyle: {
				normal: {
					color: '#00478b'
				}
			},

		}]
	};

	myChart.setOption(option);
	var bac = [{{$data['ctmEnterprise']['designconsult_star']}},{{$data['ctmEnterprise']['operation_star']}},{{$data['ctmEnterprise']['construct_star']}},{{$data['ctmEnterprise']['device_star']}},{{$data['ctmEnterprise']['invest_star']}}]
	//  这个是重新定义数据的函数
	refreshData(bac)

	function refreshData(data) {
		if(!myChart) {
			return;
		}

		//更新数据
		var option = myChart.getOption();
		option.series[0].data[0].value = data;
		myChart.setOption(option);
	}
</script>
<script>
$(function(){
     var element = $("div[class='con']");
     var temp =  element.text().replace(/\n/g,'<br/>');
     element.html(temp);
});
</script>
@endsection
